package com.javaweb.service;

import com.javaweb.model.Article;
import com.javaweb.service.dto.ArticleConditionDto;
import com.javaweb.service.dto.ArticleUpdateDto;
import com.javaweb.service.dto.PageResult;

public interface ArticleService {

    public PageResult queryByArticleCondition(ArticleConditionDto articleCond, Integer pageNum, Integer pageSize);

    public int publishArticle(String articelId, String userId) ;

    public Article queryById(String articleId);

    public Article insertArticle(Article article);

    public int publishArticlesByBatch(String[] articleIds, String userId);

    public int updateArticle(ArticleUpdateDto articledto );

    public int removeArticle(String articleId, String userId);

}
